'use strict';

const db = uniCloud.database();
exports.main = async (event, context) => {
	let {
		detail,
		picurls
	} = event
	return await db.collection("cloud_article").doc(detail._id).update({
		title: detail.title,
		author: detail.author,
		content: detail.content,
		picurls
	})
}